package com.gopay.common.mq.converter;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.Serializable;

/**
 * 消息转换类基础类
 * 默认实现：SimpleMessageConverter
 * by zhaojt
 */
public class MsgConverterFactory {

    private Logger logger = LoggerFactory.getLogger(getClass());

    private MsgConverterFactory(){}

    /**
     * 创建消息转换器
     * @param clazz
     * @return
     */
    public static <V extends Serializable> MsgConverter<V> buildMessageConverter(Class<V> clazz){
        return new MsgConverter<V>();
    }




}